<?php
/**
 * Created by PhpStorm.
 * User: tangchao
 * Date: 19-4-20
 * Time: 下午3:42
 */

namespace Lib;


class ColorDrawDec implements DrawDec
{
    private $size;
    public function __construct($size = '10px')
    {
        $this->size = $size;
    }

    public function before()
    {
        // TODO: Implement before() method.
        echo '<div style="font-size: '.$this->size.'">';
    }
    public function after()
    {
        // TODO: Implement after() method.
        echo '</div>';
    }

}